home *** CD-ROM | disk | FTP | other *** search
- ***************************************
- ***************************************
- *c_Array version 1 **
- * **
- *By: Jan Botha **
- *eMail: c03jabot@prg.wcape.school.za **
- *Using: Visual Basic 5 **
- *Date: 18 September 1999 **
- ***************************************
- ***************************************
-
- Introduction:
- -------------------------------------------------------
- I got the idea to program c_Array after I became
- aware of the fact that Collections are slow and
- use quite a lot of memory.
- This class only uses arrays to accomplish everything
- that a collection can do.
-
- I have also added a few things:
-
- 1. A MoveUp and MoveDown method to move an item
- up or down in the array
- 2. A Clear method to clear everything
- 3. I have added the possibility to use keys to
- identify an item
-
- Thus, you can use most of the methods by specifying
- either a key or an index
-
- Thank you for using c_Array 1. Please email
- me comments, suggestions and especially BUGS!
- Upgrades and improvements coming soon!
-
- The Author
- (-: Jan Botha :-)
- -------------------------------------------------------
-
- This .zip file includes the following:
- 1. This Readme file (readme.txt)
- 2. The Class Module (c_Array.cls)
- 3. A project including a form to demostrate how to use
- c_Array 1 (Example.vbp; frmc_Array.frm)
-
- ----------------------------
- Cool, but how do I use this?
- ----------------------------
- If you don't know how the hell to use this class module,
- then read on (otherwise skip this).
-
- You can use c_Array 1 on its own. You needn't use any of
- the other files included here.
-
- To add c_Array 1 to your project, click on the Project
- menu item. Then click on Add Class Module. A new window
- pops up (cool hey!) Click the Existing tab. Browse to
- where you extracted these files and click on "c_Array.cls"
- and click open.
-
- The class is now supposed to be added to your project.
- If it isn't, then I suggest that you must reconsider whether you
- should try to write programs! Just kidding. Try again if you
- had problems.
-
- You HAVE TO have these lines somewhere in your code in
- order to use c_Array1.
-
- The Dim-statement should look like this:
- Dim yourNameHere as c_Array
-
- OK, now you've Dim'ed it. Before you can use it, the
- following will have to be done:
- Set yourNameHere = New c_Array
-
- *** Remember ***
- Whenever you use the Itemget method the arguments must
- be enclosed in paranthesis. The other methods can be
- called with or without paranthesis.
- When calling a method that has both the Key and the Index
- arguments, you can omit either one, but not both. If you
- specify both the Inde xand the Key, the Index will always
- be used even if both are valid.
-
- ENJOY ENJOY ENJOY ENJOY ENJOY